﻿using Common.Contract.Authentication.Record;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Model.ViewModel.Account
{
    public class AssignGroupObjectViewModel : GenerateViewMode, IViewModel
    {
        [Required(ErrorMessage = "Group is required.")]
        public string GroupIdentifier { get; set; }

        public string ObjectIdentifier { get; set; }
        public bool Checked { get; set; }

        public ulong OtpCounter { get; set; }
        public string Otp { get; set; }

        public List<GroupRecord> Groups { get; set; }
        public List<ObjectRecord> Objects { get; set; }
        public List<RoleRecord> Roles { get; set; }
        public List<string> ObjectRoleIdentifiers { get; set; }
        public Dictionary<string, string> ObjectRole_GroupIdentifier { get; set; }
    }
}
